home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsIAccessibleEvent.idl < prev    next >
Text File  |  2006-05-08  |  7KB  |  155 lines

  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is mozilla.org code.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 2003
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Original Author: Aaron Leventhal (aaronl@netscape.com)
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38. #include "nsISupports.idl"
  39.  
  40. interface nsIAccessible;
  41. interface nsIAccessibleDocument;
  42. interface nsIDOMNode;
  43.  
  44. %{C++
  45. #define NS_ACCESSIBLE_EVENT_TOPIC "accessible-event"
  46. %}
  47.  
  48. /**
  49.  * An interface for accessibility events listened to
  50.  * by in-process accessibility clients, which can be used
  51.  * to find out how to get accessibility and DOM interfaces for
  52.  * the event and its target. To listen to in-process accessibility invents,
  53.  * make your object an nsIObserver, and listen for accessible-event by 
  54.  * using code something like this:
  55.  *   nsCOMPtr<nsIObserverService> observerService = 
  56.  *     do_GetService("@mozilla.org/observer-service;1", &rv);
  57.  *   if (NS_SUCCEEDED(rv)) 
  58.  *     rv = observerService->AddObserver(this, "accessible-event", PR_TRUE);
  59.  *
  60.  * @status UNDER_REVIEW
  61.  */
  62. [scriptable, uuid(87F29033-C4A6-40a3-AC7A-3BA391F9992D)]
  63. interface nsIAccessibleEvent : nsISupports
  64. {
  65.   /**
  66.    * The type of event, based on the enumerated event values
  67.    * defined in this interface.
  68.    */
  69.   readonly attribute unsigned long eventType;
  70.   
  71.   /**
  72.    * The nsIAccessible associated with the event.
  73.    * May return null if no accessible is available
  74.    */
  75.   readonly attribute nsIAccessible accessible;
  76.   
  77.   /**
  78.    * The nsIAccessibleDocument that the event target nsIAccessible
  79.    * resides in. This can be used to get the DOM window,
  80.    * the DOM document and the window handler, among other things.
  81.    */
  82.   readonly attribute nsIAccessibleDocument accessibleDocument;
  83.  
  84.   /**
  85.    * The nsIDOMNode associated with the event
  86.    * May return null if accessible for event has been shut down
  87.    */
  88.   readonly attribute nsIDOMNode DOMNode;
  89.  
  90.   // these are set to the values given by MSAA
  91.   const unsigned long EVENT_CREATE             = 0x8000;
  92.   const unsigned long EVENT_DESTROY            = 0x8001;
  93.   const unsigned long EVENT_SHOW               = 0x8002;
  94.   const unsigned long EVENT_HIDE               = 0x8003;
  95.   const unsigned long EVENT_REORDER            = 0x8004;
  96.   const unsigned long EVENT_FOCUS              = 0x8005;
  97.   const unsigned long EVENT_STATE_CHANGE       = 0x800A;
  98.   const unsigned long EVENT_LOCATION_CHANGE    = 0x800B;
  99.   const unsigned long EVENT_NAME_CHANGE        = 0x800C;
  100.   const unsigned long EVENT_DESCRIPTIONCHANGE  = 0x800D;
  101.   const unsigned long EVENT_VALUE_CHANGE       = 0x800E;
  102.   const unsigned long EVENT_PARENTCHANGE       = 0x800F;
  103.   const unsigned long EVENT_HELPCHANGE         = 0x8010;
  104.   const unsigned long EVENT_DEFACTIONCHANGE    = 0x8011;
  105.   const unsigned long EVENT_ACCELERATORCHANGE  = 0x8012;
  106.   const unsigned long EVENT_SELECTION          = 0x8006;
  107.   const unsigned long EVENT_SELECTION_ADD      = 0x8007;
  108.   const unsigned long EVENT_SELECTION_REMOVE   = 0x8008;
  109.   const unsigned long EVENT_SELECTION_WITHIN   = 0x8009;
  110.   const unsigned long EVENT_ALERT              = 0x0002;
  111.   const unsigned long EVENT_FOREGROUND         = 0x0003;
  112.   const unsigned long EVENT_MENUSTART          = 0x0004;
  113.   const unsigned long EVENT_MENUEND            = 0x0005;
  114.   const unsigned long EVENT_MENUPOPUPSTART     = 0x0006;
  115.   const unsigned long EVENT_MENUPOPUPEND       = 0x0007;
  116.   const unsigned long EVENT_CAPTURESTART       = 0x0008;
  117.   const unsigned long EVENT_CAPTUREEND         = 0x0009;
  118.   const unsigned long EVENT_MOVESIZESTART      = 0x000A;
  119.   const unsigned long EVENT_MOVESIZEEND        = 0x000B;
  120.   const unsigned long EVENT_CONTEXTHELPSTART   = 0x000C;
  121.   const unsigned long EVENT_CONTEXTHELPEND     = 0x000D;
  122.   const unsigned long EVENT_DRAGDROPSTART      = 0x000E;
  123.   const unsigned long EVENT_DRAGDROPEND        = 0x000F;
  124.   const unsigned long EVENT_DIALOGSTART        = 0x0010;
  125.   const unsigned long EVENT_DIALOGEND          = 0x0011;
  126.   const unsigned long EVENT_SCROLLINGSTART     = 0x0012;
  127.   const unsigned long EVENT_SCROLLINGEND       = 0x0013;
  128.   const unsigned long EVENT_MINIMIZESTART      = 0x0016;
  129.   const unsigned long EVENT_MINIMIZEEND        = 0x0017;
  130.  
  131.   // the additional events for ATK
  132.   const unsigned long EVENT_ATK_PROPERTY_CHANGE        = 0x0100;
  133.   const unsigned long EVENT_ATK_SELECTION_CHANGE       = 0x0101;
  134.   const unsigned long EVENT_ATK_TEXT_CHANGE            = 0x0102;
  135.   const unsigned long EVENT_ATK_TEXT_SELECTION_CHANGE  = 0x0103;
  136.   const unsigned long EVENT_ATK_TEXT_CARET_MOVE        = 0x0104;
  137.   const unsigned long EVENT_ATK_VISIBLE_DATA_CHANGE    = 0x0105;
  138.   const unsigned long EVENT_ATK_TABLE_MODEL_CHANGE     = 0x0110;
  139.   const unsigned long EVENT_ATK_TABLE_ROW_INSERT       = 0x0111;
  140.   const unsigned long EVENT_ATK_TABLE_ROW_DELETE       = 0x0112;
  141.   const unsigned long EVENT_ATK_TABLE_ROW_REORDER      = 0x0113;
  142.   const unsigned long EVENT_ATK_TABLE_COLUMN_INSERT    = 0x0114;
  143.   const unsigned long EVENT_ATK_TABLE_COLUMN_DELETE    = 0x0115;
  144.   const unsigned long EVENT_ATK_TABLE_COLUMN_REORDER   = 0x0116;
  145.   const unsigned long EVENT_ATK_LINK_SELECTED          = 0x0117;
  146.   const unsigned long EVENT_ATK_WINDOW_ACTIVATE        = 0x0118;
  147.   const unsigned long EVENT_ATK_WINDOW_CREATE          = 0x0119;
  148.   const unsigned long EVENT_ATK_WINDOW_DEACTIVATE      = 0x0120;
  149.   const unsigned long EVENT_ATK_WINDOW_DESTROY         = 0x0121;
  150.   const unsigned long EVENT_ATK_WINDOW_MAXIMIZE        = 0x0122;
  151.   const unsigned long EVENT_ATK_WINDOW_MINIMIZE        = 0x0123;
  152.   const unsigned long EVENT_ATK_WINDOW_RESIZE          = 0x0124;
  153.   const unsigned long EVENT_ATK_WINDOW_RESTORE         = 0x0125;
  154. };
  155.